package com.xh.springCloud.eureka.client;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

import java.util.List;

/**
 * Created by xuhao on 2016/11/16.
 */
@RestController
public class ClientController {

    @Autowired(required = false)
    private List<RestTemplate> restTemplate;

    @RequestMapping("/test")
    public void invoke(){
//        String result = restTemplate.getForObject("http://eureka-instance/test", String.class);
//        System.out.println(result);
        System.out.println();
    }
}
